.widget-panel {
    position: absolute;
    top: 56px;
    right: 50px;
    width: 325px;
    height: auto;
    overflow: hidden;
    border-radius: 1px;
    margin-bottom: 0;
    &.folded {
        height: 35px !important;
        .panel-body {
            display: none;
        }
    }
    .title {
        margin-bottom: 0;
    }
    .panel-heading {
        padding: 7px 15px;
        cursor: move;
        border-radius: 1px;
        color: #fff;
        background-color: #337ab7;
        border-color: #337ab7;
        .fold {
            cursor: pointer;
        }
        .tools {
            -webkit-appearance: none;
            padding: 0;
            background: 0 0;
            border: 0;
            float: right;
            font-size: 21px;
            font-weight: 700;
            line-height: 1;
            color: #000;
            text-shadow: 0 1px 0 #fff;
            filter: alpha(opacity=20);
            opacity: .2;
            margin-right: 8px;
            &:hover {
                opacity: .5;
            }
        }
        span {
            top: -1px;
        }
    }
    .panel-body {
        height: calc(100% - 37px);
        width: 100%;
        padding-top: 5px;
        overflow-x: hidden;
        overflow-y: auto;
        .form-group {
            margin-bottom: 5px;
        }
        table {
            margin-bottom: 10px !important;
            th,
            td {
                padding: 6px !important;
            }
        }
        button {
            padding: 4px 8px !important;
        }
        fieldset {
            margin-bottom: 5px;
            legend {
                color: #666;
                font-size: 15px;
                font-weight: 700;
                margin-bottom: 5px !important;
                cursor: pointer;
                span {
                    font-size: 12px;
                    cursor: pointer;
                    color: #666;
                    &:hover {
                        color: #333;
                    }
                }
            }
        }
        .loading {
            width: 100%;
            height: 100%;
            min-height: 150px;
            text-align: center;
            .cloud {
                font-size: 64px;
                padding-top: 35px;
                color: #333;
            }
            .download {
                position: relative;
                top: -29px;
                left: -44px;
                color: #FFF;
                font-size: 15px;
                animation: download 1s ease-in infinite;
                -webkit-animation: download 1s ease-in infinite;
            }
        }
        .panel-content {
            display: none;
            height: 100%;
        }
    }
    .panel-resize-y {
        height: 2px;
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        cursor: s-resize;
        background-color: #337ab7;
        -webkit-transition: background-color .5s;
        transition: background-color .5s;
        &:hover {
            background-color: #888;
        }
    }
}

@-webkit-keyframes download {
    50% {
        top: -18px;
    }
    100% {
        top: -18px;
    }
}

#panelContainer {
    width: 0;
    height: 0;
    font-size: 13px; // &.focus {
    //     &>.panel:last-child {
    //         /*边框色*/
    //         border: 1px solid #337ab7;
    //     }
    //     &>.panel:not(:last-child) {
    //         background-color: #ddd!important;
    //         border-color: #ddd!important
    //     }
    // }
}

#panelContainer.focus>.panel:last-child {
    // z-index: 2;
}

#panelContainer.focus>.panel:not(:last-child) {
    border: 1px solid #ddd;
    // z-index: 1;
    a {
        color: #ddd;
    }
    .btn-link {
        color: #ddd;
    }
    
    .btn:not(.btn-link) {
        background-color: #ddd;
        border-color: #ddd;
    }
}

#panelContainer.focus>.panel:not(:last-child) .panel-resize-y {
    border: 1px solid #ddd
}

#panelContainer.focus>.panel:not(:last-child) .panel-heading {
    background-color: #ddd!important;
    border-color: #ddd!important;
    color: black;
}
